import instance from '../request'

export const getLinks = () => {
    return instance({
        url: '/friend/query',
        method: 'GET'
    })
}

export const createLink = (data) => {
    return instance({
        url: '/friend/create',
        method: 'POST',
        data
    })
}

export const changeLink = (data) => {
    return instance({
        url: '/friend/change',
        method: 'PUT',
        data
    })
}

export const delInfo = (data) => {
    return instance({
        url: '/friend/deleteInfo',
        method: 'DELETE',
        data
    })
}
